package com.py.credit.dao;

import com.py.framework.core.entity.SysAreaEntity;
import com.py.framework.core.entity.SysOfficeEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OfficeDao {

    String selectTopDeptId(@Param(value = "deptId") String deptId);

    List<Long> selectTopAndDownwardId(@Param(value = "id") long id);

    List<String> selectAllDept();

    void addArea(@Param(value = "list") List<SysAreaEntity> list);

    void addDept(@Param(value = "list") List<SysOfficeEntity> list);

    void delArea();

    void delDept();

    Integer getAreaCount();

    Integer getDeptCount();

    List<Long> selectAllTopDeptId();
}
